<?php
/*************************************************************************************
 *
 *	FileName: header_php.php
 *	Desc    : display detailed information for one specific gift
 *	Author  : Seal
 *	Date    : 2010-9-26
 *
 *************************************************************************************/

	$gid = intval( GET('gid') );
	
	if( $gid <=0 )
	{
		edp_redirect(edp_href_link(PAGENAME_PAGE_NOT_FOUND));
	}
			
	$giftDAO = GetGiftCouponDAO();
	$gift = $giftDAO->GetGiftByID( $gid );
	
	if( $gift === false )
	{
		edp_redirect(edp_href_link(PAGENAME_PAGE_NOT_FOUND));
	}
	
	$historyForThisGift = $giftDAO->GetHistoryByGiftId( $gid, 20 );
	$hotGifts = $giftDAO->GetHotGifts(5);
	$hotCoupons = $giftDAO->GetHotCoupon(7);
	$giftHistory = $giftDAO->GetGiftHistory(10);
	
	return;
	
?>